<template>
  <div class="page-content">
    <div class="header">
      <h3>设置</h3>
    </div>

    <el-form label-width="295px" style="margin-top: 20px">
      <el-form-item label="群名称">
        <el-input v-model="sys.name" :disabled="!isEdit" />
      </el-form-item>
      <el-form-item label="群备注">
        <el-input v-model="sys.name" :disabled="!isEdit" />
      </el-form-item>
      <el-form-item label="炒群开启时间">
        <el-input v-model="sys.name" :disabled="!isEdit" />
      </el-form-item>
      <el-form-item label="脚本选择">
        <el-input v-model="sys.name" :disabled="!isEdit" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" style="width: 90px" @click="editConfig">
          {{ isEdit ? '保存' : '编辑' }}
        </el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import { getGroupId } from "@/utils/auth";

export default {
  data() {
    return {
      sys: {
        name: '',
        website: '',
        logo: ''
      },
      isEdit: true
    };
  },
  mounted() {
    // 页面加载时逻辑
  },
  methods: {
    editConfig() {
      // 编辑/保存逻辑
    }
  }
};
</script>

<style lang="scss" scoped>
.page-content {
  width: 100%;
  height: 100%;

  .header {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;

    h3 {
      font-size: 17px;
      font-weight: 500;
    }
  }

  /deep/ .el-form {
    .el-form-item {
      max-width: 700px;
    }
  }
}
</style>
